
import requests
if __name__ == "__main__":

    url = 'https://pic.qiushibaike.com/system/pictures/12414/124143192/medium/34V7AGXXH1SROEH4.jpg'
    #content返回的是二进制的图片数据
    #text返回的是字符串，content返回二进制，json返回的对象
    img_data = requests.get(url=url).content

    with open('./qiutu.jpg','wb') as fp:
        fp.write((img_data))